package com.marco.polo.travel.mapper;

import com.marco.polo.travel.model.Message;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MessageMapper {
    @Select("select * from message order by id desc")
    List<Message> getMessage();
    @Insert("insert into message (nickname, comment,createTime) VALUES (#{nickname}, #{comment},#{createTime})")
    void insertMessage(Message message);
}
